a1 = ["登鹤雀楼",
      "  王之换   ",
      "白日依山尽",
      "黄河入海流",
      "欲穷千里目",
      "更上一层楼"]
for a2 in a1:
    print("|%s|" % a2.center(10))